package com.test.demo;

import com.alibaba.dubbo.config.annotation.Reference;
import com.test.demo.dubboapi.UserApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DubboFactory {
    @Reference(version = "1.0.0")
    private UserApi userApi;
    @Bean
    public UserApi getUserApi() {
        return userApi;
    }
}
